package com.qzsoft.zhjd.exp.modules.marshallstability.controller;

import java.util.Map;

import com.qzsoft.zhjd.exp.modules.marshallstability.dto.MarshallStabilityDto;
import com.qzsoft.zhjd.exp.modules.marshallstability.service.MarshallStabilityService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.common.utils.ResultUtils;

/**
 * @ClassName: ExpMarshallStabilityController
 * @Description: 马歇尔稳定度试验控制器
 * @author linhuawei
 * @since 2021-04-20
 */
@RestController
@RequestMapping("/api/marshallstability")
public class MarshallStabilityController {
    
    @Autowired
    private MarshallStabilityService expMarshallStabilityService;

    /**
     * @Title: page
     * @Description: 获取马歇尔稳定度试验分页列表
     * @param params 查询条件
     * @return Result 马歇尔稳定度试验分页列表
     */
    @RequiresPermissions("api:marshallstability:page")
    @GetMapping("page")
    public Result<IPage<MarshallStabilityDto>> page(@RequestParam Map<String, Object> params) {
        IPage<MarshallStabilityDto> page = expMarshallStabilityService.page(params);
        return ResultUtils.ok(page);
    }

}
